"""编写的简单的小工具，用于处理一下图像"""
from PIL import Image

src = "../images/moon_bullet.png"


def resize():
    """调整大小"""
    pil_image = Image.open(src)
    standard_img = pil_image.resize((200, 100))
    standard_img.save(src)


def rotate():
    """调整方向"""
    pil_image = Image.open(src)
    standard_img = pil_image.rotate(180)
    standard_img.save(src)


if __name__ == '__main__':
    resize()
